/*
 * Copyright (c) 2024 Huawei Technologies Co., Ltd.
 * openUBMC is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *         http://license.coscl.org.cn/MulanPSL2
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 */

#ifndef CHIP_LM75_H
#define CHIP_LM75_H

#include "internal/bus/bus_base/bus.h"
#include "internal/chip/chip_base/chip.h"
#include <mc/engine.h>
#include <memory>

namespace dev {

class MC_API chip_lm75 : public chip_base {
public:
    bool init(mc::mutable_dict& csr_object);

    // 重写基类方法
    int32_t chip_test(uint32_t* result) override;
    int32_t block_read(uint32_t offset, uint32_t length, std::vector<uint8_t>& empty_buffer,
                        std::vector<uint8_t>& buffer, std::string& error) override;
};

} // namespace dev

#endif // CHIP_LM75_H